home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / git-4.3 / git-4 / git-4.3.11 / src / window.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  1.4 KB  |  49 lines

  1. /* window.h -- Data structures and function prototypes used by window.c.  */
  2.  
  3. /* Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
  4.  
  5.    This program is free software; you can redistribute it and/or modify
  6.    it under the terms of the GNU General Public License as published by
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.    GNU General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. /* Written by Tudor Hulubei and Andrei Pitis.  */
  20.  
  21.  
  22. #ifndef _GIT_WINDOW_H
  23. #define _GIT_WINDOW_H
  24.  
  25.  
  26. #include <sys/types.h>
  27.  
  28. #include "stdc.h"
  29.  
  30.  
  31. typedef struct
  32. {
  33.     size_t lines, columns;
  34.     size_t x, y;
  35. } window_t;
  36.  
  37.  
  38. extern window_t *window_init    PROTO ((size_t, size_t, size_t, size_t));
  39. extern void window_end        PROTO ((window_t *));
  40. extern void window_resize    PROTO ((window_t *, size_t, size_t,
  41.                     size_t, size_t));
  42. extern size_t window_puts    PROTO ((char *, size_t));
  43. extern size_t window_putc    PROTO ((char));
  44. extern void window_goto        PROTO ((window_t *, size_t, size_t));
  45. extern void window_update    PROTO (());
  46.  
  47.  
  48. #endif  /* _GIT_WINDOW_H */
  49.